import { apiRequest, cdnRequest } from '@/utils/HttpRequest';

export async function findByConfigList() {
  return cdnRequest.getList<API.BaseArrayDataResult<API.SysConfig>>(
    'sys/config/findByList',
  );
}

export async function editConfig(params: API.SysConfig) {
  return cdnRequest.post<API.BaseResult>('sys/config/edit', params);
}

export async function findBySettingsInfo() {
  return cdnRequest.get<API.SettingsInfo>('sys/settings/info');
}
export async function findBySettingInfo() {
  return cdnRequest.get<API.SettingsInfo>('sys/settings/myInfo');
}
export async function editSettings(params: API.SettingsInfo) {
  return cdnRequest.post<API.BaseResult>('sys/settings/edit', params);
}



export async function findByAboutInfo() {
  return apiRequest.get<API.AboutInfo>('about/info');
}
export async function editAbout(params: API.AboutInfo) {
  return apiRequest.post<API.BaseResult>('about/edit', params);
}
